<?php
/**
 * eBay Label Printing Program Article Category Form Class 
 * This is a Form Class , it provide the quick sign up Form 
 * @package  eBayLabelPrinter
 * @category Forms
 * @author   Norman Dong <norman.dong@hotmail.com>
 * @version  Initial
 * @copyright LeadCasket.com
 * @link     www.leadcasket.com
 * @license  Commercial
 * @todo   At the moment , this is NO validuator at all , I assue all input is correct
 */
class Form_Cms_Articlecategory extends Zend_Form
{
	/**
	 * Form construct function 
	 * Form have The following Elements 
	 *   
	 */
	
    public function __construct($options = null){
		
		parent::__construct($options);
		
		$categoryID = new Zend_Form_Element_Text('id_category_article');
		$categoryID->setLabel('Category ID');

		$categoryName = new Zend_Form_Element_Text('title_category_article');
		$categoryName->setLabel('Category Name');

		$categoryPosition = new Zend_Form_Element_Text('position_category_article');
		$categoryPosition->setLabel('Category Position');				
		
		//this should be selections
		$sectionID = new Zend_Form_Element_Text('id_section_category_article');
		$sectionID->setLabel('Section ID');
		
		$available = new Zend_Form_Element_Text('available_category_article');
		$available->setLabel('Available');
		
		$submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'submitbutton');		
		
		$this->addElements(array($categoryID,$categoryName,$categoryPosition,$sectionID,$available,$submit));
		
		}
	}